package com.nttdata.ocr.service;

import com.nttdata.ocr.domain.dto.TextAccuracyLocationDto;
import com.nttdata.ocr.domain.dto.TextOcrDto;

import java.util.List;

/**
 * OCR 识别业务实现
 */
public interface OcrService {

    /**
     * OCR 识别图片，返回只包含文本的结果
     * @param imgBase64
     * @param imgType
     * @return
     */
    List<String> ocrText(String imgBase64, String imgType);

    List<TextAccuracyLocationDto> ocrTextAccuracyLocation(String imgBase64, String imgType);
}
